package com.example.databean;

/**
 * @author:onion
 * @data: 2020/6/22
 */
import java.io.Serializable;

/**
 * 用户类，保持与数据库字段一致了
 * 具体字段说明下面有说明了
 */
public class User implements Serializable {
    /**
     *用户id
     */
    private String userId;
    /**
     *用户密码
     */
    private String userPwd;
    /**
     *用户昵称
     */
    private String userName;
    /**
     *用户年龄
     */
    private int userAge;
    /**
     *用户年级
     */
    private String userGrade;
    /**
     *用户专业
     */
    private String userSpy;
    /**
     *用户邮箱
     */
    private String userEmail;
    /**
     *用户学生证照片id
     */
    private String  userPid;
    /**
     *用户头像照片id
     */
    private String userTid;
    /**
     *用户召集令余额
     */
    private double userMoney;
    /**
     * 性别
     */
    private String userSex;


    /**
     *用户标签1
     */
    private String userLabel1;
    /**
     *用户标签2
     */
    private String userLabel2;
    /**
     *用户标签3
     */
    private String userLabel3;
    /**
     *用户标签4
     */
    private String userLabel4;
    /**
     *用户能力值（回答问题）用不到就放着吧
     */
    private Double userAbility;

    public User(String userId, String userPwd, String userName, int userAge, String userGrade, String userSpy, String userEmail, String userPid, String userTid, double userMoney, String userLabel1, String userLabel2, Double userAbility) {
        this.userId = userId;
        this.userPwd = userPwd;
        this.userName = userName;
        this.userAge = userAge;
        this.userGrade = userGrade;
        this.userSpy = userSpy;
        this.userEmail = userEmail;
        this.userPid = userPid;
        this.userTid = userTid;
        this.userMoney = userMoney;
        this.userLabel1 = userLabel1;
        this.userLabel2 = userLabel2;
        this.userAbility = userAbility;
    }

    public User(String userId, String userPwd, String userName, int userAge, String userGrade, String userSpy, String userEmail, String userPid, String userTid, double userMoney, String userLabel1, String userLabel2, String userLabel3, String userLabel4, Double userAbility) {
        this.userId = userId;
        this.userPwd = userPwd;
        this.userName = userName;
        this.userAge = userAge;
        this.userGrade = userGrade;
        this.userSpy = userSpy;
        this.userEmail = userEmail;
        this.userPid = userPid;
        this.userTid = userTid;
        this.userMoney = userMoney;
        this.userLabel1 = userLabel1;
        this.userLabel2 = userLabel2;
        this.userLabel3 = userLabel3;
        this.userLabel4 = userLabel4;
        this.userAbility = userAbility;
    }

    public User(String userPwd, String userName, int userAge) {
        super();
        this.userPwd = userPwd;
        this.userName = userName;
        this.userAge = userAge;
    }

    public User(String userId, String userPwd, String userName, int userAge) {
        super();
        this.userId = userId;
        this.userPwd = userPwd;
        this.userName = userName;
        this.userAge = userAge;
    }

    public User() {

    }
    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserSex() {
        return userSex;
    }

    public String getUserTid() {
        return userTid;
    }

    public void setUserTid(String userTid) {
        this.userTid = userTid;
    }

    public void setUserLabel1(String userLabel1) {
        this.userLabel1 = userLabel1;
    }

    public void setUserLabel2(String userLabel2) {
        this.userLabel2 = userLabel2;
    }

    public void setUserLabel3(String userLabel3) {
        this.userLabel3 = userLabel3;
    }

    public void setUserLabel4(String userLabel4) {
        this.userLabel4 = userLabel4;
    }

    public void setUserAbility(Double userAbility) {
        this.userAbility = userAbility;
    }

    public String getUserLabel1() {
        return userLabel1;
    }

    public String getUserLabel2() {
        return userLabel2;
    }

    public String getUserLabel3() {
        return userLabel3;
    }

    public String getUserLabel4() {
        return userLabel4;
    }

    public Double getUserAbility() {
        return userAbility;
    }

    public double getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(double userMoney) {
        this.userMoney = userMoney;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserGrade() {
        return userGrade;
    }

    public void setUserGrade(String userGrade) {
        this.userGrade = userGrade;
    }

    public int getUserAge() {
        return userAge;
    }

    public void setUserAge(int userAge) {
        this.userAge = userAge;
    }

    public String getUserSpy() {
        return userSpy;
    }

    public void setUserSpy(String userSpy) {
        this.userSpy = userSpy;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getUserPid() {
        return userPid;
    }

    public void setUserPid(String userPid) {
        this.userPid = userPid;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", userName='" + userName + '\'' +
                ", userAge=" + userAge +
                ", userGrade='" + userGrade + '\'' +
                ", userSpy='" + userSpy + '\'' +
                ", userEmail='" + userEmail + '\'' +
                ", userPid='" + userPid + '\'' +
                ", userTid='" + userTid + '\'' +
                ", userMoney=" + userMoney +
                ", userLabel1='" + userLabel1 + '\'' +
                ", userLabel2='" + userLabel2 + '\'' +
                ", userLabel3='" + userLabel3 + '\'' +
                ", userLabel4='" + userLabel4 + '\'' +
                ", userAbility=" + userAbility +
                '}';
    }
}
